/* Copyright (c) 2004-2024 peigen.info. All rights reserved. */

package info.peigen.hotpot.business.account.facade.order.trans;

import info.peigen.hotpot.business.account.facade.order.trans.fee.FeeOrderInfo;
import info.peigen.hotpot.common.core.lang.money.Money;
import info.peigen.hotpot.common.service.base.ServiceOrderBase;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;
import lombok.experimental.SuperBuilder;

import java.util.Date;

/**
 * <b>(AbstractAccountTransServiceOrder)</b>
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2021/7/28
 */
@EqualsAndHashCode(callSuper = true)
@SuperBuilder
@Data
@NoArgsConstructor
@AllArgsConstructor
@FieldDefaults(level = AccessLevel.PROTECTED)
@Accessors(chain = true)
public abstract class AbstractAccountTransServiceOrder extends ServiceOrderBase {
    /** 交易金额-包含币种 */
    @NotNull
    Money  transAmount;
    /** 交易Id */
    @NotEmpty
    String tradeId;
    /** 清算时间 */
    @Builder.Default
    Date   settleTime = new Date();
    /** memo */
    String       memo;
    /** 收费对象 */
    FeeOrderInfo feeOrderInfo;
}
